package day11.relect;

import org.junit.Test;

public class Demo2 {

    @Test
    public void test(){
        Class<?> class1 = Student.class;
        String simpleName = class1.getSimpleName();
        System.out.println(simpleName);
    }

    @Test
    public void test2(){
        Class<?> class1 = Student.class;
        String name = class1.getName();
        System.out.println(name);
    }

    @Test
    public void test3() throws InstantiationException, IllegalAccessException{
        Class<?> class1 = Student.class;
        Object obj = class1.newInstance();
        System.out.println(obj);
    }
}
